\hypertarget{classpg_string}{\section{pg\-String Class Reference}
\label{classpg_string}\index{pg\-String@{pg\-String}}
}


String utilities class.  




{\ttfamily \#include $<$pg\-String.\-h$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static std\-::string \hyperlink{classpg_string_a80cd4d4a4a8a14368e88a0fb2197eabe}{L\-P\-C\-W\-S\-T\-R\-To\-Std\-String} (L\-P\-C\-W\-S\-T\-R lp\-String)
\begin{DoxyCompactList}\small\item\em Converts a wchar\-\_\-t to a std\-::string object. \end{DoxyCompactList}\item 
static L\-P\-C\-W\-S\-T\-R \hyperlink{classpg_string_ab2c0ec54852b4cb216c33c33bee1982f}{Char\-Pointer\-To\-L\-P\-C\-W\-S\-T\-R} (const char $\ast$sz\-String)
\begin{DoxyCompactList}\small\item\em Convert a character pointer to a L\-P\-C\-W\-S\-T\-R, C\-A\-U\-T\-I\-O\-N\-: you need to delete the returned string yourself atm. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
String utilities class. 

Provides various conversion methods. 

\subsection{Member Function Documentation}
\hypertarget{classpg_string_ab2c0ec54852b4cb216c33c33bee1982f}{\index{pg\-String@{pg\-String}!Char\-Pointer\-To\-L\-P\-C\-W\-S\-T\-R@{Char\-Pointer\-To\-L\-P\-C\-W\-S\-T\-R}}
\index{Char\-Pointer\-To\-L\-P\-C\-W\-S\-T\-R@{Char\-Pointer\-To\-L\-P\-C\-W\-S\-T\-R}!pgString@{pg\-String}}
\subsubsection[{Char\-Pointer\-To\-L\-P\-C\-W\-S\-T\-R}]{\setlength{\rightskip}{0pt plus 5cm}static L\-P\-C\-W\-S\-T\-R pg\-String\-::\-Char\-Pointer\-To\-L\-P\-C\-W\-S\-T\-R (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{sz\-String}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classpg_string_ab2c0ec54852b4cb216c33c33bee1982f}


Convert a character pointer to a L\-P\-C\-W\-S\-T\-R, C\-A\-U\-T\-I\-O\-N\-: you need to delete the returned string yourself atm. 

Consider using P\-G\-\_\-\-C\-H\-A\-R\-P\-\_\-\-T\-O\-\_\-\-L\-P\-C\-W\-S\-T\-R as using this function will allocate heap memory (slow, managament overhead). 
\begin{DoxyParams}{Parameters}
{\em sz\-String} & String to be converted \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
newly created L\-P\-C\-W\-S\-T\-R 
\end{DoxyReturn}
\hypertarget{classpg_string_a80cd4d4a4a8a14368e88a0fb2197eabe}{\index{pg\-String@{pg\-String}!L\-P\-C\-W\-S\-T\-R\-To\-Std\-String@{L\-P\-C\-W\-S\-T\-R\-To\-Std\-String}}
\index{L\-P\-C\-W\-S\-T\-R\-To\-Std\-String@{L\-P\-C\-W\-S\-T\-R\-To\-Std\-String}!pgString@{pg\-String}}
\subsubsection[{L\-P\-C\-W\-S\-T\-R\-To\-Std\-String}]{\setlength{\rightskip}{0pt plus 5cm}static std\-::string pg\-String\-::\-L\-P\-C\-W\-S\-T\-R\-To\-Std\-String (
\begin{DoxyParamCaption}
\item[{L\-P\-C\-W\-S\-T\-R}]{lp\-String}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classpg_string_a80cd4d4a4a8a14368e88a0fb2197eabe}


Converts a wchar\-\_\-t to a std\-::string object. 

A char array would be deleted as soon as the function returns, since it's a pointer. That's why std\-::string is used here (returned by value). 
\begin{DoxyParams}{Parameters}
{\em lp\-String} & String to be converted \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
std\-::string object containing the lp\-String 
\end{DoxyReturn}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Inc/\hyperlink{pg_string_8h}{pg\-String.\-h}\end{DoxyCompactItemize}
